package com.qf.feign.api;

import com.qf.entity.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("shop-address")
public interface IAddressService {

    @RequestMapping("/addressController/getAddressListByUserId/{id}")
    public List<Address> getAddressListByUserId(@PathVariable("id") Integer id);

    @RequestMapping("/addressController/getAddressById/{id}")
    public Address getAddressById(@PathVariable("id") Integer id);
}
